package com.lagou.test.com.lagou.dao;

import com.lagou.pojo.User;
import org.dom4j.DocumentException;

import java.beans.PropertyVetoException;
import java.util.List;

public interface IUserDao {
    //查询所有用户
    public List<User> findAll() throws PropertyVetoException, DocumentException;

    //根据条件进行用户查询
    public User findByCondition(User user) throws PropertyVetoException, DocumentException;
   //根据id修改
    public Boolean updateById(User user) throws  PropertyVetoException,DocumentException;
    //新增
    public Boolean add(User user) throws PropertyVetoException,DocumentException;
    //删除
    public Boolean deleteById(User user) throws PropertyVetoException,DocumentException;
}
